package com.freeter.modules.article.dao;

import com.freeter.modules.article.entity.CmsArticleEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;

import org.apache.ibatis.annotations.Param;
import com.freeter.modules.article.entity.vo.CmsArticleVO;
import com.freeter.modules.article.entity.view.CmsArticleView;


/**
 * CMS文章表
 * 
 * @author xuchen
 * @email 171998110@qq.com
 * @date 2019-08-16 14:50:32
 */
 @SuppressWarnings({"unchecked","rawtypes"})
public interface CmsArticleDao extends BaseMapper<CmsArticleEntity> {
	
	List<CmsArticleVO> selectListVO(@Param("ew") Wrapper<CmsArticleEntity> wrapper);
	
	CmsArticleVO selectVO(@Param("ew") Wrapper<CmsArticleEntity> wrapper);
	
	
	List<CmsArticleView> selectListView(@Param("ew") Wrapper<CmsArticleEntity> wrapper);

	List<CmsArticleView> selectListView(Pagination page, @Param("ew") Wrapper<CmsArticleEntity> wrapper);
	
	CmsArticleView selectView(@Param("ew") Wrapper<CmsArticleEntity> wrapper);
}
